/*
 * ScrollView.fx
 *
 * Created on Apr 12, 2010, 10:40:59 AM
 */

package fxgreader.test;

/**
 * @author perkintang
 */


import javafx.stage.Stage;
import javafx.scene.Scene;

import java.awt.Dimension;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;
import javafx.ext.swing.SwingComponent;

import javafx.scene.layout.HBox;


/**
* @author icycandy
*/

var text: JTextPane = new JTextPane();
var pane: JScrollPane = new JScrollPane(text,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
text.setText("lovelovelove");
text.setPreferredSize(new Dimension(200, 200));

Stage {
    title: "Application title"
    scene: Scene {
        content: [
           // HBox{
           //     content:[
                    SwingComponent.wrap(pane),
           //         SwingComponent.wrap(pane1)
           //         ]
          //  }
        ]
    }
}